package cn.edu.xmu.restfuldemo.model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.ibatis.type.Alias;

import java.time.LocalDateTime;
import java.util.List;
/**
 * @author 22920192204242
 * @date 2021/10/14 16:51
 */
@Data
@Alias("OrdersPo")
public class OrdersPo {
    private Integer id;   //主键
    private String orderSn;//订单号
    private Integer pid;//父订单id
    private Integer orderType;  //订单类型0普通，1 团购，2 预售
    private Integer state;  //订单主状态
    private Integer subState;  //汀单子状态(用于团购和预售)
    private String gmtCreate ;
    private String gmtModified ;
    private Integer customerId;//购买者id
    private Integer shopId;//店铺id
    private String consignee;  //收货人
    private Integer regionId;  //地区id
    private String address;  //收货详细地址
    private String mobile;  //联系电话
    private String message;  //附言
    private Double freightPrice;  //运费
    private Integer couponId;  //使用的优事卷id
    private Integer couponActivityId;//优惠活动ID
    private String discountPrice;  //优真卷/优惠活动折扣数额
    private Integer originPrice;  //订单商品优惠前总额
    private Integer presaleId;  //预售活动id
    private Integer grouponDiscount; //团购折扣
    private Integer grouponId;  //团购活动id
    private Integer rebateNum;  //返给分享者的点数
    private String confirmTime;  //发货时间
    private String shipmentSn;  //快递单号
    private Boolean beDeleted;  //买家逻辑删除
    private List<OrderItemPo> orderItems;


}
